package com.chengwt.service.impl;
import java.util.List;

import com.chengwt.dao.AdminDao;
import com.chengwt.entity.Admin;
import com.chengwt.service.AdminService;
/**
 * 
 * @author yaozl
 */
public class AdminServiceImpl implements AdminService{

	private AdminDao adminDao;
	
	public void setAdminDao(AdminDao adminDao) {
		this.adminDao = adminDao;
	}

	public void adminAdd(Admin admin) {
		adminDao.saveAdmin(admin);
	}

	public void adminDelete(Admin admin) {
		adminDao.deleteAdmin(admin);
	}

	public List<Admin> adminlist() {
		return adminDao.listAdmin();
	}

	public void adminUpdate(Admin admin) {
		adminDao.updateAdmin(admin);
	}

}
